package com.gf.user.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.gf.user.service.DiseaseService;

/**
 * 疾病 列表
 * 
 * @author zhuguifeng guifeng.net@gmail.com
 * @version 创建时间：2012-10-11 下午1:55:14
 */
@Controller
@RequestMapping("/disease")
public class DiseaseController {

	@Autowired
	private DiseaseService diseaseService;

	/**
	 * 中文名
	 * 
	 * @return
	 */
	@RequestMapping(value = "/getChName")
	public @ResponseBody
	List<String> getChName() {
		return diseaseService.getChName();
	}

	/**
	 * 英文名
	 * 
	 * @return
	 */
	@RequestMapping(value = "/getEnName")
	public @ResponseBody
	List<String> getEnName() {
		return diseaseService.getEnName();
	}

	/**
	 * 英文--中文名
	 * 
	 * @return
	 */
	@RequestMapping(value = "/getEnChName")
	public @ResponseBody
	Map<String, String> getEnChName() {
		return diseaseService.getEnChMap();
	}

}
